package main

import (
	"encoding/base64"
	"fmt"
	"log"
)

func main() {

	msg := "test\\\\"
	encoded := base64.URLEncoding.EncodeToString([]byte(msg))

	fmt.Println(encoded)

	decoded , err := base64.URLEncoding.DecodeString(encoded)

	if err != nil {
		log.Panic(err)
	}
	fmt.Println(string(decoded))

}
